<?php
/**
 * Created by PhpStorm.
 * User: zhangrongxiang
 * Date: 2018/2/20
 * Time: 下午11:50
 */
//------------------------------
echo str_repeat( "-", 30 ) . PHP_EOL;
//******************************
echo str_repeat( "*", 30 ) . PHP_EOL;

////////////////////////////////////////////////////////////////
$input      = 'bar';
$multiplier = 5;
$separator  = ',';
//bar,bar,bar,bar,bar
echo implode( $separator, array_fill( 0, $multiplier, $input ) ) . PHP_EOL;

//?,?,?
echo implode( ',', array_fill( 0, 3, '?' ) ) . PHP_EOL;


$my_head = str_repeat( "°~", 35 );
echo strlen( $my_head ) . PHP_EOL; // 105
echo mb_strlen( $my_head, 'UTF-8' ) . PHP_EOL; // 70
echo strlen( "°" ) . PHP_EOL;//2
echo strlen( "~" ) . PHP_EOL;//1
//°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~°~
echo $my_head . PHP_EOL;